package com.finger.gulimall.order.feign;

import com.finger.common.utils.R;
import com.finger.gulimall.order.entity.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareRemoteService {
    @GetMapping("/ware/wareinfo/getStockForOrderConfirm")
    public R getStockForOrderConfirm(@RequestParam("ids") List<Long> ids);


    @PostMapping("/ware/waresku/lockStock")
    public R lockStock(@RequestBody WareSkuLockVo lockStockTos);
}
